/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.contact.teacher.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 联系老师Entity
 * @author zpp
 * @version 2020-02-20
 */
@Table(name="t_contact_teacher", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="qr_code", attrName="qrCode", label="二维码"),
		@Column(name="teacher_id", attrName="teacherId", label="教师主键"),
		@Column(name="teacher_type", attrName="teacherType", label="教师类型"),		
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class TcontactTeacher extends DataEntity<TcontactTeacher> {
	
	private static final long serialVersionUID = 1L;
	private String qrCode;		// 二维码
	private String teacherId;		// 教师主键
	private Integer teacherType;
	
	public Integer getTeacherType() {
		return teacherType;
	}

	public void setTeacherType(Integer teacherType) {
		this.teacherType = teacherType;
	}

	public TcontactTeacher() {
		this(null);
	}

	public TcontactTeacher(String id){
		super(id);
	}
	
	@Length(min=0, max=500, message="二维码长度不能超过 500 个字符")
	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}
	
	@Length(min=0, max=50, message="教师主键长度不能超过 50 个字符")
	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	
}